﻿Ext.ApplicationManager = new Ext.AbstractManager({
    //注册Application对象
    register: function (name, options) {
        if (Ext.isObject(name)) {
            options = name;
        } else {
            options.name = name;
        }

        var application = new Ext.Application(options);//创建Application实例

        this.all.add(application);

        this.currentApplication = application;//管理类当前Application实例

        return application;
    }
});


Ext.regApplication = function () {
    return Ext.ApplicationManager.register.apply(Ext.ApplicationManager, arguments);
};